package com.yugao.fintech.draper.generate.controller;

import com.yugao.fintech.draper.core.model.ResultVO;
import com.yugao.fintech.draper.datasource.entity.PageQuery;
import com.yugao.fintech.draper.datasource.entity.PageResult;
import com.yugao.fintech.draper.generate.entity.DynamicTable;
import com.yugao.fintech.draper.generate.service.DynamicTableService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 数据库表信息
 */
@RestController
@RequestMapping("/gen/table")
@RequiredArgsConstructor
public class DynamicTableController {
	private final DynamicTableService databaseTableService;

	/**
	 * 分页查询基础表信息
	 * @param pageParam 分页参数
	 * @param param 查询参数
	 * @return 分页信息
	 */
	@GetMapping("/page")
	public ResultVO<PageResult<DynamicTable>> page(PageQuery pageParam, DynamicTable param) {
		//return ResultVO.success(PageResult.success(databaseTableService.page(pageParam, param)));
		return null;
	}
}
